Search results

1000+ packages found

Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes

published version 6.0.0, 2 years ago1206 dependents licensed under $MIT
147,395,732

A Minipass stream that raises an error if you get a different number of bytes than expected

published version 1.0.3, 6 years ago147 dependents licensed under $ISC
58,639,474

Convert bytes to a human readable string: 1337 → 1.34 kB

published version 7.0.0, a month ago1953 dependents licensed under $MIT
66,635,051

JavaScript library to generate a human readable String describing the file size

published version 10.1.6, 9 months ago2403 dependents licensed under $BSD-3-Clause
52,409,486

get dimensions of any image file

published version 2.0.2, 2 months ago2577 dependents licensed under $MIT
54,982,443

Get the gzipped size of a string or buffer

published version 7.0.0, 4 years ago1319 dependents licensed under $MIT
54,877,954

Use logical properties and values in CSS

published version 8.1.0, 3 months ago226 dependents licensed under $MIT-0
25,733,601

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap

published version 4.10.2, a year ago3293 dependents licensed under $MIT
29,621,034

Tracks the download progress of a request made with mikeal/request, giving insight of various metrics including progress percent, download speed and time remaining

published version 3.0.0, 9 years ago439 dependents licensed under $MIT
25,426,449

Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.

published version 9.0.1, 6 months ago182 dependents licensed under $MIT
9,594,326

Reliable way to get the height and width of terminal/console, since it's not calculated or updated the same way on all platforms, environments and node.js versions.

published version 1.1.1, 7 years ago325 dependents licensed under $MIT
13,663,111

A React hook that allows you to use a ResizeObserver to measure an element's size.

published version 9.1.0, 3 years ago355 dependents licensed under $MIT
9,215,072

Buffer and transform the n first bytes of a stream

published version 6.0.0, 2 years ago44 dependents licensed under $MIT
7,066,003

Detab: tabs -> spaces

published version 3.0.2, 3 years ago75 dependents licensed under $MIT
6,658,875

Get image size without full download (JPG, GIF, PNG, WebP, BMP, TIFF, PSD)

published version 7.2.3, 3 years ago305 dependents licensed under $MIT
2,974,963

Takes an array of numbers and calculates some descriptive statistics

published version 2.1.0, 5 years ago21 dependents licensed under $MIT
3,239,965

Get the brotli compressed size of a string or buffer

published version 4.0.0, 6 years ago147 dependents licensed under $MIT
1,610,198

Apply a size limit to a Map class or instance

published version 1.0.0, 6 years ago1 dependents licensed under $MIT
1,443,554

DOM element size sensor which will callback when size changed.

published version 1.0.2, 2 years ago96 dependents licensed under $ISC
1,640,230

measures element size

published version 3.0.0, 3 years ago37 dependents licensed under $MIT
1,406,788